package com.service.infoEntry.dao;

import com.service.infoEntry.entity.CommentInfo;
import com.service.infoEntry.entity.TransactionCommentInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TransactionCommentDao {
    /**
     * 添加评论
     * @param transactionCommentInfo
     */
    void addComment(TransactionCommentInfo transactionCommentInfo);


    /**
     *通过troubleId查询问题下所有回复
     * @param transactionId
     * @return
     */
    List<TransactionCommentInfo> queryAllCommentByTransactionId(@Param("transactionId") String transactionId);

    /**
     * 删除项目评论
     * @param commentId
     * @return
     */
    void deleteCommentByCommentId(String commentId);
}
